#import "ALChartBackgroundView.h"


#pragma mark Class globals
static NSGradient *ALChartBackgroundGradient;


#pragma mark -
@implementation ALChartBackgroundView

+(void)initialize {
    NSColor *topColor = [NSColor colorWithCalibratedRed:0.286 green:0.320 blue:0.364 alpha:1.000];
    NSColor *bottomColor = [NSColor colorWithCalibratedRed:0.192 green:0.212 blue:0.247 alpha:1.000];
    ALChartBackgroundGradient = [[NSGradient alloc] initWithStartingColor:topColor endingColor:bottomColor];
}

-(void)drawRect:(NSRect)dirtyRect {
    [ALChartBackgroundGradient drawInRect:[self bounds] angle:270.0f];
}

@end
